/**
 * @author Mirko Bordjoski
 */	
package org.piwik.requests
{
	//import org.piwik.methods.UserCountryMethods;
	public class UserCountry
	{
		
		public static const GET_COUNTRY:String = "UserCountry.getCountry";
		public static const GET_CONTINENT:String = "UserCountry.getContinent";
		
		
		public function UserCountry(){}
		
		public static function getCountry($date:String = "yesterday", $period:String = "day", $filterLimit:uint = 100):PiwikRequest
		{			
			var req:PiwikRequest = new PiwikRequest();
			req.date = $date;
			req.filter = $filterLimit;
			req.moduleMethod = UserCountry.GET_COUNTRY;//UserCountryMethods.GET_COUNTRY;
			req.period = $period;
			req.requestType = "getCountry";
			
			return req;				
		}
		
		public static function getContinent($date:String = "yesterday", $period:String = "day", $filterLimit:uint = 100):PiwikRequest
		{			
			var req:PiwikRequest = new PiwikRequest();
			req.date = $date;
			req.filter = $filterLimit;
			req.moduleMethod = UserCountry.GET_CONTINENT;//UserCountryMethods.GET_CONTINENT;
			req.period = $period;
			req.requestType = "getContinent";
			
			return req;				
		}

	}
}